from django.shortcuts import render

# Create your views here.

from rest_framework.views import APIView
from rest_framework.response import Response

class TestAPIView(APIView):
    def get(self,request):
        from django.db import DatabaseError
        raise DatabaseError("xxx")
        return Response({"message":"hello"},)